import { httpInstance } from '@/utils/request'

interface FetchAfterSalesListAPIParams {
  limit: string
  page: string
  status: '1' | '2' | '3'
  keyword?: string
}

export function fetchAfterSalesListAPI(
  params: FetchAfterSalesListAPIParams,
  token: string,
) {
  return httpInstance.get<
    Record<string, any>,
    FetchAfterSalesListAPIParams
  >(
    'api/Project_extend/projectAfterSalesList',
    { params, headers: { token } },
  )
}
